package com.xcdh.commons.ds;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
import com.xcdh.commons.utils.DataSourceContextHolder ;
public class DynamicDataSource extends AbstractRoutingDataSource {

    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceContextHolder.get();
    }
}

